<!-- MyReactive2.vue -->
<script lang="ts" setup>
import { reactive } from 'vue'

const defaultUser = {
    name: "Maya",
    age: 20
}

const user = reactive(defaultUser)

user.name = "Rachel"
user.age = 30

console.log(defaultUser) // {name: "Rachel", age: 30}

defaultUser.name = "Samuel"

console.log(user) // { name: "Samuel", age: 30}

</script>
